package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户售后处理对象 user_complaints
 */
public class UserComplaintsHandle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 投诉ID */
    @Excel(name = "投诉ID")
    private String complaintId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String customerId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 类型：1-商品质量，2-服务态度，3-配送问题，4-其他 */
    @Excel(name = "类型")
    private Long type;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String content;

    /** 证据图片/文件（JSON） */
    @Excel(name = "证据")
    private String evidence;

    /** 状态：0-待处理，1-处理中，2-已完成，3-已驳回 */
    @Excel(name = "状态")
    private Long status;

    /** 处理人（平台客服） */
    @Excel(name = "处理人")
    private String handlerId;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date handledAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    /** 扩展字段：用户账号 */
    @Excel(name = "用户账号")
    private String userAccount;

    /** 扩展字段：商家名称 */
    @Excel(name = "商家名称")
    private String merchantName;

    /** 扩展字段：订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    // 原有getter/setter
    public void setComplaintId(String complaintId) {
        this.complaintId = complaintId;
    }

    public String getComplaintId() {
        return complaintId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setEvidence(String evidence) {
        this.evidence = evidence;
    }

    public String getEvidence() {
        return evidence;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setHandlerId(String handlerId) {
        this.handlerId = handlerId;
    }

    public String getHandlerId() {
        return handlerId;
    }

    public void setHandledAt(Date handledAt) {
        this.handledAt = handledAt;
    }

    public Date getHandledAt() {
        return handledAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setExternField1(String externField1) {
        this.externField1 = externField1;
    }

    public String getExternField1() {
        return externField1;
    }

    public void setExternField2(String externField2) {
        this.externField2 = externField2;
    }

    public String getExternField2() {
        return externField2;
    }

    // 扩展字段getter/setter
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("complaintId", getComplaintId())
                .append("orderId", getOrderId())
                .append("customerId", getCustomerId())
                .append("merchantId", getMerchantId())
                .append("type", getType())
                .append("content", getContent())
                .append("evidence", getEvidence())
                .append("status", getStatus())
                .append("handlerId", getHandlerId())
                .append("handledAt", getHandledAt())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("deletedAt", getDeletedAt())
                .append("externField1", getExternField1())
                .append("externField2", getExternField2())
                .append("userAccount", getUserAccount())
                .append("merchantName", getMerchantName())
                .append("orderAmount", getOrderAmount())
                .toString();
    }
}